<template>
  <div class="flink">
    <h2 class="h2-bb">{{title}}</h2>
    <div class="about-unit">
      <a class="mukewang" href="https://www.imooc.com/" target="_blank">
        <img class="link-img" src="https://www.imooc.com/static/img/index/logo.png">
        <div class="link-name">
          慕课网
        </div>
      </a>
      <a class="juejin" href="https://juejin.im/" target="_blank">
        <img class="link-img" src="https://b-gold-cdn.xitu.io/v3/static/img/logo.a7995ad.svg">
        <div class="link-name">
          掘金
        </div>
      </a>
      <a class="sfgg" href="https://segmentfault.com/" target="_blank">
        <img class="link-img" src="https://static.segmentfault.com/v-5b596338/global/img/logo-b.svg">
        <div class="link-name">
          segmentfault
        </div>
      </a>
    </div>
  </div>
</template>

<script>
// import noData from 'base/NoData'
export default {
  name: 'flink',
  data() {
    return {
      title: '友链'
    }
  }
  // components: {
  //   noData
  // }
}
</script>

<style lang="scss" scoped>
.flink {
  padding: 5px 10px 10px;
  margin-bottom: 20px;
  line-height: 38px;
  border-radius: 5px;
  width: 100%;
  background-color: rgba(255,255,255,0.5);
  .h2-bb {
    border-bottom: 1px #666 dashed;
    padding-bottom: 10px;
    user-select: none;
  }
  .about-unit {
    display: flex;
    justify-content: space-between;
    a {
      width: 31%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      border: 1px solid #666;
      border-radius: 3px;
      padding-bottom: 10px;
      &:hover {
        .link-name {
          text-decoration: underline;
          color: blue;
        }
      }
      .link-img {
        flex: 1;
        object-fit: scale-down;
      }
      .link-name {
        flex: 0 0 20px;
        line-height: 20px;
      }
    }
  }
}
</style>
